package com.yanqu.road.server.manger.activity.auto.send;

import com.yanqu.road.entity.activity.ActivityInfo;
import com.yanqu.road.entity.activity.UnionActivityConditionData;
import com.yanqu.road.entity.activity.UserActivityConditionData;
import com.yanqu.road.entity.enums.eGamePlayerEventType;
import com.yanqu.road.logic.bussiness.player.UserActivityBussiness;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class BiaoJuAutoSend extends BaseAutoSendActivity {
    public BiaoJuAutoSend(ActivityInfo activityInfo) {
        super(activityInfo);
    }

    @Override
    public void sendLocalUserRankReward() {

    }

    @Override
    public void sendLocalUnionRankReward() {

    }

    @Override
    protected boolean updateConditionData(UserActivityConditionData data) {
        return UserActivityBussiness.updateUserActivityConditionData(data);
    }

    @Override
    public void sendConditionReward() {

    }

    @Override
    public List<UserActivityConditionData> getNeedSendUserActivityConditionData() {
        return null;
    }

    @Override
    public Map<String, UnionActivityConditionData> getUnionActivityConditionData(int conditionType) {
        return UserActivityBussiness.getUnionActivityConditionDataMap(activityInfo.getActivityId(), conditionType);
    }

    @Override
    public Map<Long, UserActivityConditionData> getUserActivityRankConditionData(int activityId, int conditionType) {
        return getUserNormalActivityRankConditionData(activityId, conditionType);
    }

    @Override
    public void noticeCrossUserRank() {
        List<String> typeList = new ArrayList<>();
        typeList.add(String.valueOf(eGamePlayerEventType.BiaoJuExpRank.getValue()));
        noticeCrossUserYRank(typeList);
    }

    @Override
    public void noticeCrossUnionRank() {
        List<String> typeList = new ArrayList<>();
        typeList.add(String.valueOf(eGamePlayerEventType.BiaoJuUnionExpRank.getValue()));
        noticeCrossUnionYRank(typeList);
    }
}
